package com.alibaba.cloud.ddd.infrastructure.messaging.jms;

import java.lang.invoke.MethodHandles;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import jakarta.jms.Message;
import jakarta.jms.MessageListener;

public class SimpleLoggingConsumer implements MessageListener {

	private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());

	@Override
	public void onMessage(Message message) {
		logger.debug("Received JMS message: {}", message);
	}
}
